/// ClientUserBankDto
class ClientUserBankDto {
  /// 银行卡种类ID
  final int bankCardTypeId;
  /// 银行卡账号
  final String bankCard;
  /// 银行卡用户姓名
  final String accountName;
  /// 客户端用户的名
  final String? firstName;
  /// 客户端用户的姓
  final String? lastName;

  ClientUserBankDto({
    required this.bankCardTypeId,
    required this.bankCard,
    required this.accountName,
    this.firstName,
    this.lastName,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['bankCardTypeId'] = bankCardTypeId;
    data['bankCard'] = bankCard;
    data['accountName'] = accountName;
    if (firstName != null) data['firstName'] = firstName;
    if (lastName != null) data['lastName'] = lastName;
    return data;
  }

  factory ClientUserBankDto.fromJson(Map<String, dynamic> json) {
    return ClientUserBankDto(
      bankCardTypeId: json['bankCardTypeId'],
      bankCard: json['bankCard'],
      accountName: json['accountName'],
      firstName: json['firstName'],
      lastName: json['lastName'],
    );
  }
}